function getDay() {
  const date = new Date();
  return date.getFullYear() + '.' + (date.getMonth() + 1) + '.' + date.getDate();
}

const weekday = [
  '星期天',
  '星期一',
  '星期二',
  '星期三',
  '星期四',
  '星期五',
  '星期六',
];
function getWeekday() {
  const date = new Date();
  return weekday[date.getDay()];
}

export default {getDay, getWeekday};
